<template>
  <div class="q-pa-md">
    <div class="cursor-pointer">
      {{ label }}
      <t-popup-edit v-model="label" auto-save v-slot="scope">
        <t-input
          v-model="scope.value"
          dense
          autofocus
          counter
          @keyup.enter="scope.set"
        />
      </t-popup-edit>
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        label: ref('Click me'),
      };
    },
  };
</script>
